﻿#ifndef XQPUSHUSER_H
#define XQPUSHUSER_H
#include<QReadWriteLock>
#include<QDateTime>
class XQPushVerify
{
public:
	XQPushVerify();
	
public:
	//是否超时
	bool isTimeout()const;
	QDateTime timeout()const;
	QReadWriteLock* lock();
	//获得验证码
	int verify()const;
	//获得新的验证码
	int newVerify();
public:
	
protected:
	int m_verify = 0;//验证码
	QDateTime m_timeout;//超时时间
	QReadWriteLock m_lock;//读写锁
	static int m_mesc;//超时时间
};
#endif